package com.jxd.project.travel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jxd.project.travel.model.Dictionary;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ITransportationService
 * @Description TODO
 * @Author 邢子剑
 * @Date 2025/9/24 上午9:20
 * @Version 1.0
 */
public interface IDictionaryService extends IService<Dictionary> {

    //获取交通工具下拉表单
    List<Map<Integer, String>> getTransportation();

    //获取审核状态
    List<Map<String, String>> getApproval();

    Dictionary getOne(int id);

    int add(Dictionary dictionary);

    //获取所有字典
    List<Dictionary> getAllDictionary(String type);

    boolean saveDictionary(int id, String type, List<Dictionary> list);


}
